import store from '@/store'
/**
 * 页面按钮权限
 * @param {*} url = ''
 * @returns true/false
 */
export const checkAuthority = (url) => {
  const { currentBtnList } = store.state.permission
  return currentBtnList && currentBtnList.length && currentBtnList.find(n => n.url === url)?.status
}
